import {Service, action, util} from "adajs";

class LoadingService extends Service {
    defaultData() {
        return {
            icon: ':for-autorenew',
            circle: true,
            color: "black",
            content: "loading..."
        }
    }

    onupdate(current, data) {
        Object.assign(current, data);
    }

    @action("set")
    set(current, info) {
        return util.extend(current, info);
    }
}

export default LoadingService;